﻿using System.Web.Mvc;

namespace Inovout.Web.Helpers
{
    public static class ThemeExtensions
    {
        private static readonly string defaultThemeName = "Classic";
        public static string Theme(this UrlHelper url, string themePath)
        {
            themePath = themePath.Insert(1, defaultThemeName + ".");
            return url.Style(HtmlContentUtility.GetContentPath(themePath));
        }
    }
}
